import 'package:flutter/material.dart';
import 'package:flutter_study/widget/MyString.dart';

class WidgetMain extends StatelessWidget {


  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("基础组件"),
        centerTitle: true,
      ),
      body: Center(
        child: Column(
          children: [
            RaisedButton(
              onPressed: () {
                Navigator.pushNamed(context, MyString.textDemo);
              },
              child: Text("Text  demo"),
              color: Colors.blue,
            ),
            RaisedButton(
              onPressed: () {
                Navigator.pushNamed(context, MyString.progressDemo);
              },
              child: Text("Progress demo"),
              color: Colors.blue,
            ),
            RaisedButton(
              onPressed: () {
                Navigator.pushNamed(context, MyString.clickDemo);
              },
              child: Text("Click demo"),
              color: Colors.blue,
            ),
            RaisedButton(
              onPressed: () {
                Navigator.pushNamed(context, MyString.inputDemo);
              },
              child: Text("Input demo"),
              color: Colors.blue,
            ),
          ],
        ),
      ),
    );
  }
}
